﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Specifications;

namespace My.Domain.Issues
{
    public class AssignedSepcification : Specification<Issue>
    {
        public override Expression<Func<Issue, bool>> ToExpression()
        {
            return x => x.AssignedUserId.HasValue;
        }
    }

    public class LockedSpecification : Specification<Issue>
    {
        public override Expression<Func<Issue, bool>> ToExpression()
        {
            return x => x.IsLocked;
        }
    }
}
